package com.wanda.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.wanda.mapper.ReceptiontableMapper;
import com.wanda.po.Receptiontable;
import com.wanda.po.ReceptiontableExample;
import com.wanda.service.ReceptionService;

@Service("receptionService")
public class ReceptionServiceImpl implements ReceptionService{

	@Autowired
	private ReceptiontableMapper receptiontableMapper;
	public int insert(Receptiontable receptiontable) throws Exception {
		int n = receptiontableMapper.insert(receptiontable);
		return n;
	}
	public List<Receptiontable> selectByExample(ReceptiontableExample example) {
		return receptiontableMapper.selectByExample(example);
	}
	public int deleteByPrimaryKey(Integer id) {
		int n = receptiontableMapper.deleteByPrimaryKey(id);
		return n;
	}
	public Receptiontable selectByPrimaryKey(Integer id) {
		return receptiontableMapper.selectByPrimaryKey(id);
	}
	public int updateByPrimaryKey(Receptiontable record) {
		int n = receptiontableMapper.updateByPrimaryKey(record);
		return n;
	}

	
}
